<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table border="1px" >
		<tr >
			<th colspan="5">${user.userRealName }已登录</th>
			<th colspan="6">${user.userBeforeTime }</th>
		</tr>
		<tr align="center">
			<th>编号</th>
			<th>订单编号</th>
			<th>下单时间</th>
			<th>用户ID</th>
			<th>订单总金额</th>
			<th>状态</th>
			<th>订单来源</th>
			<th>收货人姓名</th>
			<th>收货人电话</th>
			<th>收货地址</th>
			<th>操作</th>
		</tr>
		<c:if test="${empty USERORDERS_LIST}">
			为空
		</c:if>
		<c:if test="${ not empty USERORDERS_LIST}">
			<c:forEach items="${USERORDERS_LIST }" var="list" >
				<tr align="center">
					<td>${list.goodId }</td>
					<td>${list.goodNumber }</td>
					<td>${list.shoopingTime }</td>
					<td>${list.userId }</td>
					<td>${list.aggregateAmount }</td>
					<td>${list.goodStatus }</td>
					<td>${list.goodOrder }</td>
					<td>${list.receiverName }</td>
					<td>${list.receiverPhone }</td>
					<td>${list.receiverAddress }</td>
					<td>
					<button>
					<c:if test="${list.goodStatus.equals('未支付') }">确定</c:if>
					<c:if test="${!list.goodStatus.equals('未支付') }">正在配货</c:if>
					</button>
					<button>
					<c:if test="${list.goodStatus.equals('未支付') }">取消</c:if>
					<c:if test="${!list.goodStatus.equals('未支付') }"></c:if>
					</button>
					<%-- <button>${list.goodStatus.equals('未支付')？"取消":"" }</button> --%>
					
					</td>
				</tr>
			</c:forEach>
		</c:if>
	</table>
</body>
</html>